<div class="ciucourses index">
  <h2><?php __('Ciucourses');?></h2>
  
<div class="ciuusers form">	
	<?php echo $this->Form->create('Ciucourse', array('action'=>'indexcreate'));?>
	<fieldset>
	<?php
		echo $this->Form->input('ciuplan_id', array('options'=>$ciuplans));
	?>
	</fieldset>
	<?php echo $this->Form->end(__('Submit', true));?>
</div>
  
  <?php if(isset($language_id)){ ?>
    <div class="button">
      <?php echo $this->Html->link(__('Add', true), array('action' => 'add' , $language_id)); ?>
    </div>
  <?php } ?>
  
  
  <table class="zebra" cellpadding="0" cellspacing="0">
	<thead>
  <tr>
      <th><?php echo $this->Paginator->sort('id');?></th>
      <th><?php echo $this->Paginator->sort('ciulanguage_id');?></th>
      <th><?php echo $this->Paginator->sort('ciulevel_id');?></th>
      <th><?php echo $this->Paginator->sort('ciutimetable_id');?></th>
      <th><?php echo $this->Paginator->sort('ciuroom_id');?></th>
      <th><?php echo $this->Paginator->sort('Docente' );?></th>
      <th><?php echo $this->Paginator->sort('ciucoursestate_id');?></th>
      <th><?php echo $this->Paginator->sort('ciuacademicperiod_id');?></th>
      <th class="actions"><?php __('Actions');?></th>
  </tr>
  </thead>
  <?php
  $i = 0;
  foreach ($ciucourses as $ciucourse):
    $class = null;
    if ($i++ % 2 == 0) {
      $class = ' class="altrow"';
    }
  ?>
  <tr<?php echo $class;?>>
    <td><?php echo $ciucourse['Ciucourse']['id']; ?>&nbsp;</td>
    <td>
      <?php echo $this->Html->link($ciucourse['Ciulanguage']['name'], array('controller' => 'ciulanguages', 'action' => 'view', $ciucourse['Ciulanguage']['id'])); ?>
    </td>
    <td>
      <?php echo $this->Html->link($ciucourse['Ciulevel']['name'], array('controller' => 'ciulevels', 'action' => 'view', $ciucourse['Ciulevel']['id'])); ?>
    </td>
    <td>
      <?php echo $this->Html->link($ciucourse['Ciutimetable']['name'], array('controller' => 'ciutimetables', 'action' => 'view', $ciucourse['Ciutimetable']['id'])); ?>
    </td>
    <td>
      <?php echo $this->Html->link($ciucourse['Ciuroom']['name'], array('controller' => 'ciurooms', 'action' => 'view', $ciucourse['Ciuroom']['id'])); ?>
    </td>
    <td>
      <?php echo $this->Html->link($ciucourse['Ciuuser']['name'], array('controller' => 'ciuusers', 'action' => 'view', $ciucourse['Ciuuser']['id'])); ?>
    </td>
    <td>
      <?php echo $this->Html->link($ciucourse['Ciucoursestate']['name'], array('controller' => 'ciucoursestates', 'action' => 'view', $ciucourse['Ciucoursestate']['id'])); ?>
    </td>
    <td>
      <?php echo $this->Html->link($ciucourse['Ciuacademicperiod']['name'], array('controller' => 'ciuacademicperiods', 'action' => 'view', $ciucourse['Ciuacademicperiod']['id'])); ?>
    </td>
    <td class="actions">
      <?php echo $this->Html->link(__('View', true), array('action' => 'view', $ciucourse['Ciucourse']['id'])); ?>
      <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $ciucourse['Ciucourse']['id'])); ?>
      <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $ciucourse['Ciucourse']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ciucourse['Ciucourse']['id'])); ?>
    </td>
  </tr>
<?php endforeach; ?>
  </table>
  <p>
  <?php
  echo $this->Paginator->counter(array(
  'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
  ));
  ?>  </p>

  <div class="paging">
    <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
   |  <?php echo $this->Paginator->numbers();?>|
    <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
  </div>
</div>